package com.xqit.ydzhkt.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.util.Date;

/**
 * Created by Janus on 2020/6/9
 */

@Data
public class AnswerEntity implements Serializable {
    // private int QuestionEntityId;

    private int id;
    //用户id
    private int userId;
    //问题id
    private int questionId;
    //问题回答
    private String answerContent;
    //回答时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date answerTime;

    private User user;

}
